home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jazlib.arc / JZFATEOF.C < prev    next >
Text File  |  1988-12-18  |  570b  |  23 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzfateof.c                                     │
  4. │Determine if at the end of a files cluster chain.                 │
  5. │                                         │
  6. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8. */
  9.  
  10. jzfateof(fcluster , fbigfat)
  11. unsigned int fcluster;
  12. int fbigfat;
  13. {
  14.   int weof;
  15.  
  16.   if (fbigfat)
  17.     weof = (fcluster >> 4) ==  0xfff && (fcluster & 0xf) >= 8;
  18.   else
  19.     weof = fcluster >= 0xFF8;
  20.  
  21.   return(weof);
  22. }
  23.